package cn.qyd;

import org.checkerframework.checker.units.qual.A;

import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

/**
 * @author 邱运铎
 * @date 2024-03-07 11:54
 */
public class CharDemo {
    public static void main(String[] args) {
        System.out.println("🀎");
        System.out.println("🀎".length());
        System.out.println("🀎".charAt(0));
        System.out.println("🀎".charAt(1));
        System.out.println("邱".length());
        char a = '饕';
        ArrayList list = new ArrayList();
        int[] arr = new int[]{1,23,4,5,6};
        int k = 2;
//        System.out.println(--k > 1);
//        System.out.println(k-- > 1);
        while (k-- > 0) {
            System.out.println(k + "===");
        }
        System.out.println("hello".lastIndexOf("l"));
        ArrayDeque<String> arrayDeque = new ArrayDeque<>();
        arrayDeque.addLast("s");
        int[] s = new int[]{};
        System.out.println(s.length);
        int[] s1 = new int[2];
        System.out.println(s1.length);


    }

}
